﻿namespace HRM.CORE.Workdesk.Chart
{
    using HRM.CORE;
    using System; using Extra.ERP;
    using System.ComponentModel;
    using System.Drawing;
    using System.Windows.Forms; using Common;

    public class xucChartProfessional : xucChartBase
    {
        private IContainer components = null;

        public xucChartProfessional()
        {
            this.InitializeComponent();
            base.m_NameChart = "Chuy\x00ean M\x00f4n";
            base.m_Type = 0;
            this.ReloadData();
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            base.SuspendLayout();
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode = AutoScaleMode.Font;
            base.Name = "xucChartProfessional";
            base.Size = new Size(0x250, 0x18a);
            base.ResumeLayout(false);
        }

        protected override void ReloadData()
        {
            base.ReloadData();
            base.m_DataChart = new HRM_EMPLOYEE().GetProfessional(MyLogin.Level, MyLogin.Code);
            base.LoadChart(base.m_Type, base.m_DataChart);
        }
    }
}

